Skip to content

New Module loading system, bFun-8 fixed#1

Open
thefishlive wants to merge 14 commits intomasterfrom
module-loading
Open

New Module loading system, bFun-8 fixed#1
thefishlive wants to merge 14 commits intomasterfrom
module-loading

Conversation

@thefishlive
Copy link
Member

New module loading system

  • Loads all classes that extend Module as modules
  • Removes the need for path.yml files, replaces them as @ModuleInfo annotations
  • Cleans up existing code
  • Auto registers classes that extend listener as a listener.

Fix module loading error
Cleanup in Module/ModuleDescription
… into module-loading

Conflicts:
	.gitignore
	bFundamentals/src/uk/codingbadgers/bFundamentals/module/ModuleLoadEvent.java
	bFundamentals/src/uk/codingbadgers/bFundamentals/module/ModuleLoader.java
@ghost ghost assigned thefishlive Sep 8, 2013
@thefishlive
Copy link
Member Author

Fuck sake git, merge has deleted a file

@thefishlive thefishlive closed this Sep 8, 2013
@thefishlive thefishlive reopened this Sep 8, 2013
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be configurable

@thefishlive
Copy link
Member Author

Todo list

  • Register listeners
  • Configurable module dir
  • Javadoc all new public classes, eg. events/module methods
  • Mabey: Add module method to get class loader?

Added auto registering of listeners onEnable (If a listener is already loaded it will be skipped)
Made the modules directory configurable.
Conflicts:
	.gitignore
	bFundamentals/pom.xml
	bFundamentals/src/uk/codingbadgers/bFundamentals/module/Module.java
	bFundamentals/src/uk/codingbadgers/bFundamentals/module/ModuleLoader.java
	bFundamentals/src/uk/codingbadgers/bFundamentals/module/loader/Loader.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant